$OpenBSD: patch-plugins_filetemplates_CMakeLists_txt,v 1.2 2015/07/10 18:28:14 zhuk Exp $
Fix missing UI files dependencies when building test program.
--- plugins/filetemplates/CMakeLists.txt.orig	Mon Feb  2 17:14:28 2015
+++ plugins/filetemplates/CMakeLists.txt	Fri Jul  3 01:28:31 2015
@@ -15,6 +15,7 @@ set(kdevfiletemplates_PART_SRCS
     testcasespage.cpp
 )
 
+# on change, update ${test_srcs} one below, too
 kde4_add_ui_files(kdevfiletemplates_PART_SRCS
     templatepreviewtoolview.ui
     ui/licensechooser.ui
@@ -78,6 +79,17 @@ main.cpp
     templateoptionspage.cpp
     templateselectionpage.cpp
     testcasespage.cpp
+)
+
+# same as with kdevfiletemplates_PART_SRCS, should be in synce
+kde4_add_ui_files(test_srcs
+    templatepreviewtoolview.ui
+    ui/licensechooser.ui
+    ui/newclass.ui
+    ui/outputlocation.ui
+    ui/overridevirtuals.ui
+    ui/templateselection.ui
+    ui/testcases.ui
 )
 
 kde4_add_executable(testfiletemplates ${test_srcs})
